﻿@model SiteCredivale.ViewModels.usuarios_afastadosViewModel

@{

    Layout = "~/Areas/Intranet/Views/Shared/_Layout2.cshtml";

}
<div id="topico" class="topico">Afastamento de colobarador</div>
<div class="box_medio">
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()



        @Html.ValidationSummary(true, "", new {@class = "text-danger"})


            

  
        @Html.HiddenFor(model => model.codigo)
        @Html.HiddenFor(model => model.usu_codigo)


        <div class="editor-field">
            <label class="txtLabel">
                Usuário:
            </label>
            @Html.EditorFor(model => model.usu_nome, new {htmlAttributes = new {@readonly = "readonly", @class = "input_grande" } }) 
            @Html.ValidationMessageFor(model => model.usu_nome)
        </div>

        <div class="editor-field">
            <label class="txtLabel">
                Data início:
            </label>
            @Html.EditorFor(model => model.data_inicio, new {htmlAttributes = new {@readonly = "readonly", @id = "calendario1", @name = "calendario1"}})
            @Html.ValidationMessageFor(model => model.data_inicio)
        </div>


        <div class="editor-field">
            <label class="txtLabel">
                Data fim:
            </label>

            @Html.EditorFor(model => model.data_fim, new {htmlAttributes = new {@readonly = "readonly", @id = "calendario2", @name = "calendario2"}})
            @Html.ValidationMessageFor(model => model.data_fim)
        </div>



        <div class="editor-field">
            <label class="txtLabel">
                Tipo afastamento:
            </label>
            @Html.DropDownList("tip_codigo",null, new { @disabled = false })
            @Html.ValidationMessageFor(model => model.tip_codigo)
        </div>


        <div class="editor-field">
            <label class="txtLabel">
                Observação:
            </label>
            @Html.TextAreaFor(model => model.obs)

        </div>


        <br/><a href="~/Intranet_/Usuarios_afastados/Manutencao"><div class="btn"><img src="/Imagens/Intranet/opcoes/back.png" />Voltar</div></a>

    }



</div>


@if (ViewBag.err != null)
{


    @Html.Raw("<script type='text/javascript'>errorsAlert('Atenção', '" + ViewBag.err + "');</script>")


}




